import { tr } from "element-plus/es/locales.mjs";

export default {
  path: "/allocate",
  redirect: "/allocate/index",
  meta: {
    icon: "ri/information-line",
    title: "调拨业务",
    rank: 10
  },
  children: [
    {
      path: "/allocateOrder",
      name: "调拨单列表",
      component: () => import("@/views/allocate/allocateOrder.vue"),
      meta: {
        title: "调拨单",
      },
    },
    {
      path: "/allocateDetail",
      name: "调拨物品详情",
      component: () => import("@/views/allocate/allocateDetail.vue"),
      meta: {
        title: "调拨物品详情",
        showLink: false,
      }
    },
    {
      path: "/allocateAudit",
      name: "调拨物品审核",
      component: () => import("@/views/allocate/allocateAudit.vue"),
      meta: {
        title: "调拨物品审核",
        showLink: false,
      }
    },
    {
      path: "/allocateAuditQuery",
      name: "调拨物品审核查看",
      component: () => import("@/views/allocate/allocateAuditQuery.vue"),
      meta: {
        title: "调拨物品审核查看",
        showLink: false,
      }
    },
    {
      path: "/allocate/restocking",
      name: "补货需求列表",
      component: () => import("@/views/allocate/Restocking.vue"),
      meta: {
        title: "补货需求列表",
        showParent: true
      },
      children: [
        {
          path: "/allocate/restockingDetail",
          name: "补货需求详情",
          component: () => import("@/views/allocate/RestockingDetail.vue"),
          meta: {
            title: "补货需求详情",
          }
        },
      ]
    },
    {
      path: "/allocate/allocateIns",
      name: "入库操作",
      component: () => import("@/views/allocate/allocateIn.vue"),
      meta: {
        title: "入库操作",
        showParent: true
      },
      children: [
        {
          path: "/allocate/allocateInDetail",
          name: "调拨处理",
          component: () => import("@/views/allocate/allocateInDetail.vue"),
          meta: {
            title: "调拨处理",
            showParent: true
          }
        },
                {
          path: "/allocate/allocateIn",
          name: "调拨入库",
          component: () => import("@/views/allocate/allocateIn.vue"),
          meta: {
            title: "调拨入库",
            showParent: true
          }
        },
      ]
    },
    {
      path: "/set/permission",
      name: "管理员",
      component: () => import("@/views/set/permission.vue"),
      meta: {
        title: "管理员",
        showParent: true
      },
      children: [
        {
          path: "/set/keeper",
          name: "库管员管理",
          component: () => import("@/views/set/keeper.vue"),
          meta: {
            title: "库管员管理"
          }
        },
        {
          path: '/set/keeper/form',
          name: '管理员表单',
          component: () => import('@/views/set/son/adminForm.vue'),  // 新建的 AdminForm.vue 页面
          meta: { title: '管理员表单' }
        },
        {
          path: "management",
          name: "仓库权限",
          component: () => import("@/views/set/management.vue"),
          meta: {
            title: "仓库权限"
          }
        }
      ]
    }
  ]
} satisfies RouteConfigsTable;